/*    */ package com.zimbra.cs.util;
/*    */ 
/*    */ import com.zimbra.common.localconfig.KnownKey;
/*    */ import com.zimbra.common.localconfig.LC;
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.util.Log;
/*    */ import com.zimbra.common.util.ZimbraLog;
/*    */ import java.util.List;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class ZimbraApplication
/*    */ {
/*    */   private static ZimbraApplication sServices;
/*    */   private boolean isShutdown;
/*    */   
/*    */   public static ZimbraApplication getInstance()
/*    */   {
/* 34 */     if (sServices == null) {
/* 35 */       String className = LC.zimbra_class_application.value();
/* 36 */       if ((className != null) && (!className.equals(""))) {
/*    */         try {
/* 38 */           sServices = (ZimbraApplication)Class.forName(className).newInstance();
/*    */         }
/*    */         catch (Exception e) {
/* 41 */           ZimbraLog.misc.error("could not instantiate ZimbraServices interface of class '" + className + "'; defaulting to ZimbraServices", e);
/*    */         }
/*    */       }
/*    */       
/*    */ 
/* 46 */       if (sServices == null)
/* 47 */         sServices = new ZimbraApplication();
/*    */     }
/* 49 */     return sServices;
/*    */   }
/*    */   
/*    */   public String getId() {
/* 53 */     return "zimbra";
/*    */   }
/*    */   
/*    */   public String getClientId() {
/* 57 */     return "01234567-89AB-CDEF--FEDC-BA9876543210";
/*    */   }
/*    */   
/*    */   public boolean supports(String className) {
/* 61 */     return true;
/*    */   }
/*    */   
/*    */   public boolean supports(Class cls) {
/* 65 */     return supports(cls.getName());
/*    */   }
/*    */   
/*    */   public void startup() {}
/*    */   
/*    */   public void initialize(boolean forMailboxd) {}
/*    */   
/*    */   public void initializeZimbraDb(boolean forMailboxd) throws ServiceException
/*    */   {}
/*    */   
/*    */   public void shutdown()
/*    */   {
/* 77 */     this.isShutdown = true;
/*    */   }
/*    */   
/*    */   public boolean isShutdown() {
/* 81 */     return this.isShutdown;
/*    */   }
/*    */   
/*    */   public void addExtensionName(String name) {
/* 85 */     if (!$assertionsDisabled) throw new AssertionError();
/*    */   }
/*    */   
/*    */   public List<String> getExtensionNames() {
/* 89 */     if (!$assertionsDisabled) throw new AssertionError();
/* 90 */     return null;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/util/ZimbraApplication.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */